home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000125_icon-group-sender_Mon Oct 30 13:09:44 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9UK93H06032
  4.     for icon-group-addresses; Mon, 30 Oct 2000 13:09:03 -0700 (MST)
  5. Message-Id: <200010302009.e9UK93H06032@baskerville.CS.Arizona.EDU>
  6. From: Chris.D.Tenaglia@jci.com
  7. Subject: Re: Yet another Newbie question...
  8. To: icon-group@cs.arizona.edu
  9. Date: Mon, 30 Oct 2000 10:14:43 -0600
  10. X-MIMETrack: Serialize by Router on jwimkrs1.na.jci.com/NA/Johnson_Controls(Release 5.0.4
  11.  |June 8, 2000) at 10/30/2000 10:22:38 AM
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: RO
  14. Content-Length: 465
  15.  
  16. Letter Counting
  17.  
  18. count := 0
  19. others := &cset -- &letters
  20. every line := !file do
  21.     every byte := !line do
  22.         any(others,byte) | (count +:=1)
  23. write(count)
  24.  
  25. There is a different between sets and csets.
  26. csets are a collection of unique characters
  27. sets are a collection of unique things, such as strings, bytes,
  28. lists, numbers, or whatever. csets augment the string
  29. scanning and parsing. sets are used at a higher level
  30. to augment algorhythms.
  31.  
  32. Chris Tenaglia,
  33.  
  34.  
  35.